<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
        /*长度随body长度改变，高度跟随内容高度*/
        border: 1px solid red;
        width: 100px;
        height: 100px;}
        span{
        /*默认宽高随内容改变*/
        border: 1px solid blue;
        /*行内元素默认无法修改宽高*/
        width: 100px;
        height: 100px;
        /*如果行内元素需要改宽高，则需要把display的值改成block独占一行或inline-block共占一行*/
        display: inline-block;}
        img{/*行内块元素共占一行可以修改宽高*/
        width: 100px;
        height: 100px;
        display: none;/*隐藏元素*/}
        a{background-color: #0aa1ed;
        width: 132px;
        height: 40px;
        display: block;
        text-align: center;
        line-height: 40px;
        text-decoration: none;
        font-size: 20px;
        color: white;
        /*设置圆角 值越大越圆*/
        border-radius: 3px;
        }
    </style>
</head>
<body>
<a href="">查看详情</a>
<img src="../b.png" >
<img src="../b.png" >
<img src="../b.png" >
<div>div1</div>
<div>div2</div>
<div>div3</div>
<span>span1</span>
<span>span2</span>
<span>span3</span>
</body>
</html>